<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/global.css" />
	<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery-1.6.2.min.js"></script>
	<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.validate.js"></script>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	
<script type="text/JavaScript">
$(document).ready(function(){
	setTimeout(function() {
		$(".flash-message").fadeOut('slow');
    }, 5000);
});
</script>

</head>

<body bgcolor="#f5f5f5">

<!-- Begin body-->
<div id="profileBg" class="clearfix">
	
	<div id="profileWrapper">
	    <!-- Begin top-->
		<div id="profileTop">
	        <a href="#"><img src="<?php echo Html::imageUrl("logo.png");?>" width="189" height="64" border="0" /></a>
	        <div id="blue">  <a href="#"> Đặng Thanh Tú  |   My Home   |   rswork   |    R.U.N Apps <img src="<?php echo Html::imageUrl("tamgiac.png");?>" width="8" height="5" border="0">   |   Support   |    Settings  |    <?php echo Chtml::link("Sign out",array("/login/logout"));?>  </a></div> 
	  	
		    <!-- Begin menu-->
		    <div id="profileNav">
		           
		                <?php 
		                    $uid = Yii::app()->request->getParam('uid');
		                    $this->widget('zii.widgets.CMenu',array(
				'items'=>array(
					array('label'=>'Sơ yếu lý lịch', 'url'=>array('/profile/cv/index','uid'=>$uid),'active'=>Yii::app()->controller->id=='cv'),
					array('label'=>'Học vấn', 'url'=>array('/profile/knowledge/index','uid'=>$uid), 'active'=>Yii::app()->controller->id=='knowledge'),
					array('label'=>'Kỹ năng', 'url'=>array('/profile/skill/index','uid'=>$uid),'active'=>Yii::app()->controller->id=='skill'),
					array('label'=>'Kinh nghiệm làm việc', 'url'=>array('/profile/experience/index','uid'=>$uid), 'active'=>Yii::app()->controller->id=='experience'),
					array('label'=>'Tình trạng', 'url'=>array('/profile/status/index','uid'=>$uid),'active'=>Yii::app()->controller->id=='status'),
					array('label'=>'Admin', 'url'=>array('/profile/admin/index'),'active'=>Yii::app()->controller->id=='admin'),
			))); ?>
			</div>
		    <!-- End menu -->
	    </div>
	    <!-- End top -->
	    
	    <!-- Begin content -->
	   	<div class="clear"></div>
	            <?php 
				foreach(Yii::app()->user->getFlashes() as $key => $flashMessage) {
				    //if ($key=='counters')
				    	echo "<div class='flash-message flash-{$key}'>{$flashMessage}</div>";
				}
	            ?>
	            
	            <?php echo $content;?>
	                 
	</div>
	<!-- End body -->
	
	<!-- Begin footer -->
	  <div id="profileFooter">
		  <a href="#"><img src="<?php echo Html::imageUrl("logonho.png");?>" width="145" height="48" border="0" style="float:right; margin-top:20px;"></a>
		  <div id="profileCopyright">© 2011 Bản Quyền Thuộc về Runsystem Crop. Sử dụng tốt nhất trên trình duyệt Fire Fox.</div>
	  </div>
	<!-- End footer -->
</div>
<?php // Initialize the extension
	$this->widget('application.extensions.jnotify.JNotify', array(
		'statusBarId'=>'StatusBar',
		'notificationId'=>'Notification',
		'notificationHSpace'=>'30px',	
		'notificationWidth'=>'280px',
		'notificationShowAt'=>'topRight',
)); ?>
            

</body>
</html>